<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<% String path = request.getContextPath();
   String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!doctype html>
<html lang="en" class="fullscreen-bg">

<head>
    <base href="<%=basePath%>">
    <title>登录</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">

<%--    <!-- VENDOR CSS -->--%>
<%--    <link rel="stylesheet" href="assets/css/bootstrap.min.css">--%>
<%--    <link rel="stylesheet" href="assets/vendor/font-awesome/css/font-awesome.min.css">--%>
<%--    <link rel="stylesheet" href="assets/vendor/linearicons/style.css">--%>
<%--    <!-- MAIN CSS -->--%>
<%--    <link rel="stylesheet" href="assets/css/main.css">--%>
<%--    <!-- FOR DEMO PURPOSES ONLY. You should remove this in your project -->--%>
<%--    <link rel="stylesheet" href="assets/css/demo.css">--%>

    <!-- GOOGLE FONTS -->
    <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700" rel="stylesheet">
    <!-- ICONS -->
    <link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-icon.png">
    <link rel="icon" type="image/png" sizes="96x96" href="assets/img/favicon.png">

    <style>
        body {
            margin: 0;
            height: 80vh;
            background-image: url('assets/img/login-bg.jpg');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            position: relative;
        }

        body::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            height: 880px;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: -1;
        }

        .auth-box{
            position: absolute;
            z-index: 2;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            margin-top: 150px;
        }

        .left{
            position: absolute;
            z-index: 5;
            width: 500px;
            height: 520px;
            margin-top: -10px;
            margin-left: -180px;
            background-color: #FFFFFF;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
            .content{
                width: 500px;
                height: 600px;
                display: flex;
                justify-content: center;
                align-items: center;
                flex-direction: column;
            }
        }

        .right{
            position: absolute;
            z-index: 3;
            width: 1000px;
            height: 500px;
            background-color: #0c8ec3;
            .loginbg{
                position: absolute;
                z-index: 4;
                width: 100%;
                height: 100%;
                opacity: 0.2;
            }
            .content-text{
                color: #FFFFFF;
                display: flex;
                justify-content: space-between;
                .text11{
                    height: 500px;
                    width: 60px;
                    font-size: 38px;
                    margin-top: 20px;
                    margin-left: 20px;
                }
                .text22{
                    position: relative;
                    height: 500px;
                    width: 320px;
                    font-size: 20px;
                    p{
                        position: absolute;
                        bottom: -10px;
                        right: 20px;
                        text-align: right;
                        height: 60px;
                        width: 320px;
                    }
                }
            }
        }

        .content{
            position: relative;
        }
        .header{
            position: absolute;
            top: 75px;
            left: 0;
            width: 500px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            font-size: 22px;
            .logo > img{
                width: auto;
                height: 30px;
            }
            .lead{
                color: #9d9d9d;
                margin-top: 0;
            }
        }

        .form-auth-small{
            margin-top: 10px;
            width: 500px;
            height: 300px;

            .form-group11{
                width: 500px;
                height: 40px;
                display: flex;
                justify-content: center;
                align-items: center;
                margin-top: 18px;
                label{
                    font-size: 20px;
                }
                input{
                    width: 300px;
                    height: 30px;
                }
            }
        }
        .btn{
            width: 352px;
            height: 42px;
            border: 0;
            background-color: #0ea0db;
            color: #FFFFFF;
            font-size: 20px;
            font-weight: bold;
            margin-top: 20px;
            margin-left: 74px;
        }
        .btn:hover{
            background-color: #9acfea;
        }

        .form-group22{
            margin-left: 74px;
            margin-top: 20px;
            label{
                display: flex;
                align-items: center;
                color: #9d9d9d;
            }
            input{
                width: 20px;
                height: 20px;
            }
        }

        .bottom{
            display: flex;
            justify-content: space-between;
            width: 350px;
            margin-top: 20px;
            margin-left: 75px;

            .helper-text{
            }
        }
    </style>
</head>

<body style="margin: 0">
<!-- WRAPPER -->
<div id="wrapper">
    <div class="vertical-align-wrap">
        <div class="vertical-align-middle">
            <div class="auth-box ">
                <div class="left">
                    <div class="content">
                        <div class="header">
                            <div class="logo text-center"><img src="assets/img/logo-dark.png" alt="Klorofil Logo"></div>
                            <p class="lead">请登录账号</p>
                        </div>
                        <form class="form-auth-small" action="/studentSociety/student/login" method="post">
                            <div class="form-group11">
                                <label for="signin-text" class="control-label sr-only">账号&nbsp;</label>
                                <input type="text" class="form-control" name="account" id="signin-text" value="" placeholder="请输入账号">
                            </div>
                            <div class="form-group11">
                                <label for="signin-password" class="control-label sr-only">密码&nbsp;</label>
                                <input type="password" class="form-control" name="password" id="signin-password" value="thisisthepassword" placeholder="请输入密码">
                            </div>
                            <div class="form-group22 clearfix">
                                <label class="fancy-checkbox element-left">
                                    <input type="checkbox">
                                    <span>免登录</span>
                                </label>
                            </div>
                            <button type="submit" class="btn btn-primary btn-lg btn-block">登&nbsp;录</button>
                            <div class="bottom">
                                <span class="helper-text"><i class="fa fa-lock"></i> <a href="#">忘记密码?</a></span>
                                <span class="helper-text"><i class="fa fa-lock"></i> <a href="register.jsp">没有账号?点击注册</a></span>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="right">
<%--                    <image class="loginbg" src="assets/img/login-bg.jpg" alt=""></image>--%>
                    <div class="overlay"></div>
                    <div class="content-text">
                        <div class="text11"><b>学生协会管理系统</b></div>
                        <div class="text22">
                            <p><b>5 组</b>作品<br>
                            组员:<b>张瑞，郭小雨，马铭涛</b></p>
                        </div>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
    </div>

<%--    <script>--%>
<%--        let message = '${param.message}';--%>
<%--        if(message != "" && message != 'null'){--%>
<%--            alert("重新登录");--%>
<%--        }--%>
<%--    </script>--%>

</div>
<!-- END WRAPPER -->
</body>

</html>